package ycl.important.common.base.controller;

import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import ycl.important.common.ApiResult;
import ycl.important.common.base.entity.BaseEntity;

/**
 * 控制器基类
 *
 * @author: YCL
 * @date: 2021-06-05 00:16:44
 */
@RestController
public abstract class BaseController {


	@GetMapping("/getById")
	@ApiOperation("根据id获取数据")
	@ApiOperationSupport(order = 1)
	public abstract ApiResult<? extends BaseEntity> getById(Long id);
}
